package com.djl.sqtg.mapper;

import com.djl.sqtg.entity.Coupon;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface CouponMapper {
   List<Coupon> getAllCoupon();
   Integer getCouponNum();
   Integer updateCouponState(Integer cid,Integer state);
   Integer addCoupon(Coupon coupon);
   Integer editCoupon(Coupon coupon);
   Integer delCoupon(Integer cid);
   List<Coupon> getAllCouponBySearch(String coupontype,  String couponname);
   Integer getCouponNumBySearch(String coupontype,  String couponname);


}
